package com.woniuxy.dao;

import com.woniuxy.pojo.Category;
import com.woniuxy.pojo.Goods;

import java.util.List;

/**
 * @Author 罗蔚
 * @Date 2022/3/27 17:27
 * @Description TODO
 */
public interface GoodsDao {
    public List<Goods> findNewGoods();

    public List<Goods> findHotGoods();

    //插件版查分页
    public List<Goods> findPageByCid1(int cid);

    //查询某类的销量商品
    public List<Goods> findGoodsSalesByCid(int cid);

    //根据id查询商品详情
    public Goods findByid(int gid);

    public Category findCidAndCnameByGid(int gid);

    public List<Goods> findLikeByCid(int cid);

    public List<Goods> findLike(String name);
}
